﻿using System.Collections.Generic;
using Eagles.Base;
using Eagles.Application.Model.Enums;
using Eagles.DomainService.Model.News;
using Eagles.DomainService.Model.User;

namespace Eagles.Interface.DataAccess.StudyAccess
{
    public interface IStudyAccess : IInterfaceBase
    {
        int EditStudyTime(bool type, TbUserStudyLog userStudy);
        
        TbUserStudyLog GetStudyTime(int userId, int newsId, int moduleId);

        List<TbNews> GetUserStudy(StudyEnum studyEnum, int appId, int userId, int pageIndex = 1, int pageSize = 10);

        int GetUserStudyCount(StudyEnum studyEnum, int appId, int userId);

        TbNews GetUserStudyDetail(int newsId, int moduleId);
    }
}